package com.freshmarket.freshmarket.controller.form;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 *  *
 *  * </p>
 *
 * @author Squirrel
 * @since 2020-09-04
 */
@Data

@AllArgsConstructor
@NoArgsConstructor
public class FormCoupon implements Serializable {

    private Integer couponId;
    @NotEmpty
    private String couponName;
    @NotNull
    private Integer couponNum;
    @NotEmpty
    private String couponPastdue;

    /**
     * 直接发放 结算赠送 积分兑换
     */
    @NotEmpty
    private String couponStatus;

    /**
     * 针对于结算发放的劵 该劵的发放门槛
     */

    private Double couponThreshold;

    /**
     * 针对积分换购的劵 换购的价格
     */
    @NotNull
    private Integer couponScorePrice;

    /**
     * 直扣 折扣
     */
    @NotEmpty
    private String couponDiscountsStatus;
    @NotNull
    private Double couponDiscounts;

    /**
     * 0 为全局生效 具体id为指定商品
     */
    @NotNull
    private Integer productId;


}
